// JavaScript Document

function createObject() 
{
	var request_type;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer")
	{
		request_type = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
	request_type = new XMLHttpRequest();
	}
	return request_type;
}

var http = createObject();

var nocache = 0;
function loadBill(page,id)
{
	showLoadingPage();
	url = "process/processViewBill.php?id="+id+"&page="+page;
		http.open("get",url,true);
		http.onreadystatechange=processBill;
		http.send(null);
}
function processBill(){
	if(http.readyState == 4){
		$('#ViewBillContent').html(http.responseText);	
		 	$("#loadingpage").fadeOut(1000);
	}
}
//load bill addmin
function loadBillAddmin(page,id)
{
	showLoadingPage();
	url = "process/processBillAdmin.php?id="+id+"&page="+page;
		http.open("get",url,true);
		http.onreadystatechange=processloadBillAddmin;
		http.send(null);
}
function processloadBillAddmin(){
	if(http.readyState == 4){
		$('#ViewBillContent').html(http.responseText);	
$("#loadingpage").fadeOut(1000);
	}
}